# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-regexp-common-net-cidr
pkgver=0.03
pkgrel=2
pkgdesc="Regexp::Common::net::CIDR perl module"
url="https://metacpan.org/release/Regexp-Common-net-CIDR/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl perl-regexp-common"
makedepends="perl-module-install"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BP/BPS/Regexp-Common-net-CIDR-$pkgver.tar.gz"

builddir="$srcdir/Regexp-Common-net-CIDR-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="0ca3d188ea4197af2981c2910e5f5a2d412d760251ee7ad9d688aa6e60f4dfdbf5583d599b1af8698ed7c740c252f0e8bda38de254f03a699122de1c1f598f20  Regexp-Common-net-CIDR-0.03.tar.gz"
